//检查是否支持localStorage
export const supportsLocalStorage = () => {
  let supports = true;
  const key = "__localStorage_check";
  try {
    localStorage.setItem(key, "test");
    localStorage.removeItem(key);
  } catch (e) {
    supports = false;
  }
  return supports;
};
